package com.example.activemqp2p.consumers;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import javax.jms.JMSException;
import javax.jms.TextMessage;

/**
 * \* @author: wky
 * \* Date: 2022/10/08
 * \* Time: 11:10
 * \* To change this template use File | Settings | File Templates.
 * \* Description:Consumers
 * \
 */
@Component
public class Consumers {

    @JmsListener(destination = "wkyqueue")
    public void receiveMsg(String msg)  {
        System.out.println(msg);
    }
}